package com.atguigu.edusugar.service;

import com.atguigu.edusugar.bean.Cm;
import com.atguigu.edusugar.bean.Course;
import com.atguigu.edusugar.bean.Province;
import com.atguigu.edusugar.mapper.TradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class TradeServiceImpl implements TradeService {
    @Autowired
    TradeMapper tradeMapper;
    @Override
    public BigDecimal gmv(int date) {
        return tradeMapper.gmv(date);
    }

    @Override
    public List<Course> gmvByCourse(int date) {
        return tradeMapper.gmvByCourse(date);
    }

    @Override
    public List<Cm> gmvByCm(int date) {
        return tradeMapper.gmvByCm(date);
    }

    @Override
    public List<Province> province(int date) {
        return tradeMapper.province(date);
    }
}
